import config from "@/config"
import http from "@/utils/request"

export default {
	applyData:{
		url: `${config.API_URL}/processManage/getMyApplyData`,
		name: "查询我的申请表格数据",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	processDetailInfo:{
		url: `${config.API_URL}/processManage/getDetailBasicInfo`,
		name: "申请页详情信息",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	applySealInfo:{
		url: `${config.API_URL}/processManage/getApplySealInfo`,
		name: "刻制申请流程相关的印章",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	processNodeInfo:{
		url: `${config.API_URL}/processManage/getProcessNodeInfo`,
		name: "申请页获取流程节点",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	notDoData:{
		url: `${config.API_URL}/processManage/getMyNotDoData`,
		name: "查询我的待办页面表格数据",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	agreeProcess:{
		url: `${config.API_URL}/processManage/agreeProcess`,
		name: "同意流程",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	rejectProcess:{
		url: `${config.API_URL}/processManage/rejectProcess`,
		name: "同意流程",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	submitAgain:{
		url: `${config.API_URL}/processManage/submitProcessAgain`,
		name: "流程驳回后重新提交",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	changeApprove:{
		url: `${config.API_URL}/processManage/changeApprovePeople`,
		name: "流程驳回后重新提交",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	approvedData:{
		url: `${config.API_URL}/processManage/myApprovedPageData`,
		name: "查询我的审批页面表格数据",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	backProcess:{
		url: `${config.API_URL}/processManage/backProcess`,
		name: "流程撤回",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	stopProcess:{
		url: `${config.API_URL}/processManage/stopProcess`,
		name: "流程废止",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	}
	
}